package com.wxd.framework.entity;

import com.wxd.framework.common.FrameConstants;
import com.wxd.framework.common.data.DataBaseHelper;

public class User extends BaseEntity {
    
	private String id;
	
    private String userName;

    private String userEmail;

    private String userPassword;

    private String realName;
    
    private String phoneNumber;

    private Boolean isStoped;
    
    public User(){
    }
    
    public User(String userName, String userEmail, String realName,String phoneNumber, String creater){
    	super(creater, creater);
    	this.id = DataBaseHelper.getRandomUUID();
    	this.userName = userName;
    	this.userEmail = userEmail;
    	this.userPassword = FrameConstants.DEFAULT_PASSWORD;
    	this.realName = realName;
    	this.phoneNumber = phoneNumber;
    	this.isStoped = false;
    }
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail == null ? null : userEmail.trim();
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword == null ? null : userPassword.trim();
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName == null ? null : realName.trim();
    }
    
    public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public Boolean getIsStoped() {
        return isStoped;
    }

    public void setIsStoped(Boolean isStoped) {
        this.isStoped = isStoped;
    }

    
}